package org.jeecg.modules.iot.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@NoArgsConstructor
public class Consumption {

    private Timestamp ts;
    private String tableName;
    private String deviceId ;
    //每过500的公里数
    private Float fMileage=0f;
    private Float eConsum=0f;
    private Float epower=0f;
    private Float fpower=0f;

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
        this.tableName = "c" + deviceId; //  假设表名为 c + deviceId
    }
}
